﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameLib.Utils;

namespace Sandbox.Serialization.StringSerializers
{
	public class NameSerializer : StringSerializer
	{
		protected override object FromString(Type type, string str, GameLib.Serialization.DataFlags dataFlags)
		{
			return Name.FromString(str);
		}

		public override string ConvertToString(object obj, GameLib.Serialization.DataFlags dataFlags)
		{
			throw new NotImplementedException();
		}

		public override Type SupportedType
		{
			get { return typeof(Name); }
		}
	}
}
